package com.cat.recruit.common.constant;

import java.util.Set;

/**
 * 方向常量(如前端，后端)
 */
public class Direction {
    public static String FRONTEND = "前端";
    public static String BACKEND = "后端";

    private static final Set<String> DIRECTION_LIST = Set.of(
            FRONTEND,
            BACKEND
    );

    /**
     * 查询directionList是否包含指定的方向
     * @param direction 方向
     * @return 是否包含
     */
    public static boolean isContains(String direction) {
        return DIRECTION_LIST.contains(direction);
    }
}